-- GENERATED SPELL FOR [Kaylaan] --


function spell0_20780(pUnit, Event) --@Resurrection,n/a--
pUnit:FullCastSpellOnTarget(35746,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20780', 4000, 1)
end

function Sorts_20780(pUnit, Event)
local choix_sorts_20780 = math.random(0, 0)
if choix_sorts_20780 == 0 then
pUnit:RegisterEvent('spell0_20780', 1, 1)
end
end

function mob20780_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20780', math.random(1500, 3000), 1)
end

function mob20780_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20780_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20780_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20780, 1, 'mob20780_Action')
RegisterUnitEvent(20780, 2, 'mob20780_Leave')
RegisterUnitEvent(20780, 3, 'mob20780_Kill')
RegisterUnitEvent(20780, 4, 'mob20780_Die')
